// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Router from 'vue-router'

import App from './App'
import router from './router'
import mint from 'mint-ui'
import 'mint-ui/lib/style.css'
import vshare from 'vshare'
import vant from 'vant'
import 'vant/lib/index.css'
import 'mint-ui/lib/style.css'
import store from './store/store'
import { Rate } from 'vant';

const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
    return originalPush.call(this, location).catch(err => err)
}

Vue.prototype.$EventBus = new Vue()

Vue.config.productionTip = false
Vue.use (Router)
Vue.use (mint)
Vue.use (vshare)
Vue.use (vant)
Vue.use (Rate)


/* eslint-disable no-new */
new Vue ({
  el: '#app',
  router,
  store,
  components: {App},
  template: '<App/>'
})
